package com.atguigu.jxc.dao;

import com.atguigu.jxc.domain.ServiceVO;
import com.atguigu.jxc.entity.DamageList;
import com.atguigu.jxc.entity.DamageListGoods;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface DamageListGoodsDao {
    /**
     * 保存报损商品
     * @param damageListGoods
     * @return
     */
    ServiceVO save(DamageListGoods damageListGoods);

    /**
     * 查询报损单中的商品
     * @param damageListId
     * @return
     */
    List<DamageListGoods> list(Integer damageListId);
}
